//
//  AELWeatherRecordCell.swift
//  ActualExaminationLine
//
//  Created by iOS-Czz on 2023/10/29.
//

import UIKit

class AELWeatherRecordCell: UITableViewCell {

    @IBOutlet var temperatureLabel: UILabel!
    @IBOutlet var weekLabel: UILabel!
    @IBOutlet var dateLabel: UILabel!
    @IBOutlet var locationLabel: UILabel!
    @IBOutlet var weatherIcon: UIImageView!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    var model: AELWeatherModel? {
        didSet {
            self.weatherIcon.image = UIImage(named: WEATHER_ICONS[self.model!.weather])
            self.locationLabel.text = self.model?.location
            self.dateLabel.text = self.model?.date
            self.weekLabel.text = self.model?.week
            self.temperatureLabel.text = self.model?.temperature
        }
    }
}
